let api = [];
const apiDocListSize = 1
api.push({
    name: 'default',
    order: '1',
    list: []
})
api[0].list.push({
    alias: 'ErrorController',
    order: '1',
    link: '',
    desc: '',
    list: []
})
api[0].list[0].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/',
    desc: '',
});
api[0].list[0].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/404',
    desc: '',
});
api[0].list[0].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/500',
    desc: '',
});
api[0].list.push({
    alias: 'BrandController',
    order: '2',
    link: '',
    desc: '',
    list: []
})
api[0].list[1].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/brand/',
    desc: '',
});
api[0].list[1].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/brand/enable',
    desc: '',
});
api[0].list[1].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/brand/save',
    desc: '',
});
api[0].list[1].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/brand/del/{id}',
    desc: '',
});
api[0].list[1].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/brand/delAll/{ids}',
    desc: '',
});
api[0].list.push({
    alias: 'BuyerShowController',
    order: '3',
    link: '',
    desc: '',
    list: []
})
api[0].list[2].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buyershow/',
    desc: '',
});
api[0].list[2].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buyershow/save',
    desc: '',
});
api[0].list[2].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buyershow/delAll/{ids}',
    desc: '',
});
api[0].list[2].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buyershow/queryDetails/{id}',
    desc: '',
});
api[0].list[2].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buyershow/ChangeStatus',
    desc: '',
});
api[0].list.push({
    alias: 'BuySampleController',
    order: '4',
    link: '',
    desc: '',
    list: []
})
api[0].list[3].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buysample/',
    desc: '',
});
api[0].list[3].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buysample/save',
    desc: '',
});
api[0].list[3].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buysample/query/{id}',
    desc: '',
});
api[0].list[3].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buysample/del/{ids}',
    desc: '',
});
api[0].list[3].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buysample/export',
    desc: '',
});
api[0].list[3].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/buysample/buySampleImportData',
    desc: '',
});
api[0].list.push({
    alias: 'CategoryBrandController',
    order: '5',
    link: '',
    desc: '',
    list: []
})
api[0].list[4].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryBrand/getList',
    desc: '',
});
api[0].list[4].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryBrand/save',
    desc: '',
});
api[0].list[4].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryBrand/delAll',
    desc: '',
});
api[0].list.push({
    alias: 'CategoryController',
    order: '6',
    link: '',
    desc: '',
    list: []
})
api[0].list[5].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/category/getList',
    desc: '',
});
api[0].list[5].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/category/getableList',
    desc: '',
});
api[0].list[5].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/category/save',
    desc: '',
});
api[0].list[5].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/category/changeEnable',
    desc: '',
});
api[0].list[5].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/category/del/{id}',
    desc: '',
});
api[0].list[5].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/category/tree',
    desc: '',
});
api[0].list.push({
    alias: 'CategoryParamController',
    order: '7',
    link: '',
    desc: '',
    list: []
})
api[0].list[6].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryParam/getList',
    desc: '',
});
api[0].list[6].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryParam/save',
    desc: '',
});
api[0].list[6].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryParam/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'CategoryPropController',
    order: '8',
    link: '',
    desc: '',
    list: []
})
api[0].list[7].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryProp/getList',
    desc: '',
});
api[0].list[7].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryProp/save',
    desc: '',
});
api[0].list[7].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categoryProp/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'CategorySpecController',
    order: '9',
    link: '',
    desc: '',
    list: []
})
api[0].list[8].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categorySpec/getList',
    desc: '',
});
api[0].list[8].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categorySpec/save',
    desc: '',
});
api[0].list[8].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/categorySpec/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'ErpGoodSyncController',
    order: '10',
    link: '',
    desc: '',
    list: []
})
api[0].list[9].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/erpSync/',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsController',
    order: '11',
    link: '后台商品模块',
    desc: '后台商品模块',
    list: []
})
api[0].list[10].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/',
    desc: '查询商品',
});
api[0].list[10].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/exprot',
    desc: '查询商品',
});
api[0].list[10].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/selectNoSkuList',
    desc: '查询未进行SKU上传的商品',
});
api[0].list[10].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/save',
    desc: '新增/修改',
});
api[0].list[10].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/delAll/{ids}',
    desc: '删除',
});
api[0].list[10].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/ChangeStatus',
    desc: '上下架',
});
api[0].list[10].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/bathUpOrDown/{ids}',
    desc: '批量上下架',
});
api[0].list[10].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/wholeUpOrDown',
    desc: '整体上下架',
});
api[0].list[10].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/skuUpOrDown',
    desc: '根据SKU进行上下架处理',
});
api[0].list[10].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/selectDetails/{goodsId}',
    desc: '根据商品id查询商品详情',
});
api[0].list[10].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/selectGoods',
    desc: '根据分区,商品码，商品货号，商品名称查询',
});
api[0].list[10].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/selectByGoodsInfo',
    desc: '根据分区,商品码，商品货号，商品名称查询商品（客服下单）',
});
api[0].list[10].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/importExcelGoods',
    desc: '调拨单导入,1代表调拨单，2代表入库',
});
api[0].list[10].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/importExcelInDepot',
    desc: '初始化入库批量导入',
});
api[0].list[10].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/findActProductVo',
    desc: '活动模块-查询商品',
});
api[0].list[10].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/codePrint/{ids}',
    desc: '商品模块-商品码打印',
});
api[0].list[10].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/codePrint',
    desc: '商品模块-商品码使用payLoad的传参方式',
});
api[0].list[10].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/codePrint2',
    desc: '商品模块-商品码打印-2020-10-27',
});
api[0].list[10].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/codePrints',
    desc: '商品模块-商品码打印新',
});
api[0].list[10].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/selectProduct/{ids}',
    desc: '商品模块-商品码打印-颜色尺码选择列表',
});
api[0].list[10].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/import',
    desc: '新增商品-excel导入',
});
api[0].list[10].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/sortGoods',
    desc: '商品排序',
});
api[0].list[10].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/chgSort/{id}/{sort}',
    desc: '商品排序修改',
});
api[0].list[10].list.push({
    order: '24',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/erpSync',
    desc: 'Erp同步',
});
api[0].list[10].list.push({
    order: '25',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goods/importtest',
    desc: '新增商品测试-excel导入测试误用',
});
api[0].list.push({
    alias: 'GoodsIntroController',
    order: '12',
    link: '',
    desc: '',
    list: []
})
api[0].list[11].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsIntro/save',
    desc: '',
});
api[0].list[11].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsIntro/selectIntroByGoodsId/{goodsId}',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsParamController',
    order: '13',
    link: '',
    desc: '',
    list: []
})
api[0].list[12].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsParam/save',
    desc: '',
});
api[0].list[12].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsParam/selectParamByGoodsId/{goodsId}',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsPointController',
    order: '14',
    link: '',
    desc: '',
    list: []
})
api[0].list[13].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsPoint/selectList',
    desc: '获取积分商品列表',
});
api[0].list[13].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsPoint/saveOrUpdate',
    desc: '添加或修改积分商品信息',
});
api[0].list.push({
    alias: 'GoodsSpecController',
    order: '15',
    link: '',
    desc: '',
    list: []
})
api[0].list.push({
    alias: 'PhotoAlbumController',
    order: '16',
    link: '',
    desc: '',
    list: []
})
api[0].list[15].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/',
    desc: '',
});
api[0].list[15].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/getList',
    desc: '',
});
api[0].list[15].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/save',
    desc: '',
});
api[0].list[15].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/delAll/{ids}',
    desc: '',
});
api[0].list[15].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/importImg',
    desc: '',
});
api[0].list[15].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/importExcel',
    desc: '',
});
api[0].list[15].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoAlbum/tree',
    desc: '',
});
api[0].list.push({
    alias: 'PhotoGalleryController',
    order: '17',
    link: '',
    desc: '',
    list: []
})
api[0].list[16].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoGallery/',
    desc: '',
});
api[0].list[16].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoGallery/save',
    desc: '',
});
api[0].list[16].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoGallery/update',
    desc: '',
});
api[0].list[16].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/photoGallery/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'ProductController',
    order: '18',
    link: '货品管理api',
    desc: '货品管理Api',
    list: []
})
api[0].list[17].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/',
    desc: '列表查询',
});
api[0].list[17].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/save',
    desc: '货品新增',
});
api[0].list[17].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/selectSpecByGoodsId/{goodsId}',
    desc: '',
});
api[0].list[17].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/selectProduct',
    desc: '',
});
api[0].list[17].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/findProductList/{productSn}',
    desc: '根据商品款号来查询信息',
});
api[0].list[17].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/tmp',
    desc: '临时使用',
});
api[0].list[17].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/product/findGoodsIdByProductSn/{productSn}',
    desc: '根据商品款号来查询商品id',
});
api[0].list.push({
    alias: 'RecycleBinController',
    order: '19',
    link: '',
    desc: '',
    list: []
})
api[0].list[18].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/recycleBin/',
    desc: '',
});
api[0].list[18].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/recycleBin/delAll/{ids}',
    desc: '',
});
api[0].list[18].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/recycleBin/recovery/{ids}',
    desc: '',
});
api[0].list.push({
    alias: 'SceneController',
    order: '20',
    link: '',
    desc: '',
    list: []
})
api[0].list[19].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/scene/',
    desc: '',
});
api[0].list[19].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/scene/save',
    desc: '',
});
api[0].list[19].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/scene/del/{id}',
    desc: '',
});
api[0].list[19].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/scene/delAll/{ids}',
    desc: '',
});
api[0].list.push({
    alias: 'SpecController',
    order: '21',
    link: '',
    desc: '',
    list: []
})
api[0].list[20].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/spec/getList',
    desc: '',
});
api[0].list[20].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/spec/save',
    desc: '',
});
api[0].list[20].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/spec/del/{id}',
    desc: '',
});
api[0].list[20].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/spec/init',
    desc: '',
});
api[0].list.push({
    alias: 'SpecValueController',
    order: '22',
    link: '',
    desc: '',
    list: []
})
api[0].list[21].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/',
    desc: '',
});
api[0].list[21].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/all',
    desc: '',
});
api[0].list[21].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/color',
    desc: '',
});
api[0].list[21].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/size',
    desc: '',
});
api[0].list[21].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/treeList',
    desc: '',
});
api[0].list[21].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/treeAbleList/{specId}',
    desc: '',
});
api[0].list[21].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/save',
    desc: '',
});
api[0].list[21].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/del/{id}',
    desc: '',
});
api[0].list[21].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/delByIds/{ids}',
    desc: '',
});
api[0].list[21].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/updateChang',
    desc: '',
});
api[0].list[21].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/specValue/init',
    desc: '',
});
api[0].list.push({
    alias: 'SupplierController',
    order: '23',
    link: '',
    desc: '',
    list: []
})
api[0].list[22].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/supplier/',
    desc: '',
});
api[0].list[22].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/supplier/list',
    desc: '',
});
api[0].list[22].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/supplier/save',
    desc: '',
});
api[0].list[22].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/supplier/delAll/{ids}',
    desc: '',
});
api[0].list[22].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/supplier/selectAll',
    desc: '',
});
api[0].list.push({
    alias: 'CommonGoodsController',
    order: '24',
    link: '商品通用api',
    desc: '商品通用Api',
    list: []
})
api[0].list[23].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/common/goods/goodsSn/{goodsSn}',
    desc: '根据goodsSn去查找正价商品',
});
api[0].list[23].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/common/goods/checkGoodsSn/{goodsSn}',
    desc: '验证goodsSn是否已存在',
});
api[0].list[23].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/common/goods/checkStyleNo/{styleNo}',
    desc: '验证styleNo是否已存在',
});
api[0].list[23].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/common/goods/checkErpStyleNo',
    desc: '验证styleNoERP同步返回的数据',
});
api[0].list[23].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/common/goods/{id}',
    desc: '根据商品id查询商品详情',
});
api[0].list[23].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/common/goods/',
    desc: '商品清晰数据',
});
api[0].list.push({
    alias: 'FrontBuyerShowController',
    order: '25',
    link: '',
    desc: '',
    list: []
})
api[0].list[24].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/buyershow/getList/{goodsId}',
    desc: '',
});
api[0].list[24].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/buyershow/getList',
    desc: '',
});
api[0].list[24].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/buyershow/save',
    desc: '',
});
api[0].list[24].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/buyershow/chgPraiseCount',
    desc: '进行了调整了，修改为flag和买家秀id',
});
api[0].list[24].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/buyershow/queryDetails/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontCartController',
    order: '26',
    link: '',
    desc: '',
    list: []
})
api[0].list[25].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/save',
    desc: '',
});
api[0].list[25].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/changeItemNum',
    desc: '',
});
api[0].list[25].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/selectItem/{itemId}',
    desc: '',
});
api[0].list[25].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/selectAllItem',
    desc: '',
});
api[0].list[25].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/cancelItem/{itemId}',
    desc: '',
});
api[0].list[25].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/cancelAllItem',
    desc: '',
});
api[0].list[25].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/del/{ids}',
    desc: '',
});
api[0].list[25].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/delAll',
    desc: '',
});
api[0].list[25].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/cart/',
    desc: '',
});
api[0].list.push({
    alias: 'FrontGoodsConcernController',
    order: '27',
    link: '',
    desc: '',
    list: []
})
api[0].list[26].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsconcern/save',
    desc: '',
});
api[0].list[26].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsconcern/saveBatch/{ids}',
    desc: '',
});
api[0].list[26].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsconcern/',
    desc: '',
});
api[0].list[26].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsconcern/del/{ids}',
    desc: '批量删除存在空格错误，还没有找打合适的解决方案，暂时用但删除调通接口',
});
api[0].list[26].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsconcern/cancel',
    desc: '通过商品ID和货品ID来取消收藏',
});
api[0].list.push({
    alias: 'FrontGoodsController',
    order: '28',
    link: '前端:商品api',
    desc: '前端:商品Api',
    list: []
})
api[0].list[27].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/{id}',
    desc: '',
});
api[0].list[27].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/goodsSn/{goodsSn}',
    desc: '',
});
api[0].list[27].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/{id}/{actId}',
    desc: '',
});
api[0].list[27].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getList',
    desc: '',
});
api[0].list[27].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getActList',
    desc: '',
});
api[0].list[27].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getImgList',
    desc: '前端图片搜搜服务',
});
api[0].list[27].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getImgAddList',
    desc: '前端图片搜搜服务测试',
});
api[0].list[27].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/hotGoods',
    desc: '',
});
api[0].list[27].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/actHotGoods',
    desc: '',
});
api[0].list[27].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getGoodsCategory',
    desc: '',
});
api[0].list[27].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/queryCriteria',
    desc: '',
});
api[0].list[27].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getListByCategoryId/{categoryId}',
    desc: '',
});
api[0].list[27].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goods/getSkuListByGoodId/{goodId}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontGoodsPointController',
    order: '29',
    link: '前端积分商品模块',
    desc: '前端积分商品模块',
    list: []
})
api[0].list[28].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsPoint/selectList',
    desc: '获取积分商品列表',
});
api[0].list.push({
    alias: 'FrontGoodsVisitController',
    order: '30',
    link: '&lt;p&gt;商品模块-浏览足迹&lt;/p&gt;',
    desc: '&lt;p&gt;商品模块-浏览足迹&lt;/p&gt;',
    list: []
})
api[0].list[29].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsvisit/',
    desc: '',
});
api[0].list[29].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsvisit/delByMemberId',
    desc: '',
});
api[0].list[29].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsvisit/searchList',
    desc: '',
});
api[0].list[29].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/goodsvisit/save',
    desc: '',
});
api[0].list.push({
    alias: 'CartRpcController',
    order: '31',
    link: '',
    desc: '',
    list: []
})
api[0].list[30].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/cart/loadSelectedItem',
    desc: '',
});
api[0].list[30].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/cart/removeItemFromCart',
    desc: '',
});
api[0].list.push({
    alias: 'ErpRpcController',
    order: '32',
    link: '',
    desc: '',
    list: []
})
api[0].list[31].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/erp/selectDepotSkuStockByPage',
    desc: '',
});
api[0].list[31].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/erp/addOutDepot',
    desc: '',
});
api[0].list[31].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/erp/addInDepot',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsRpcController',
    order: '33',
    link: '',
    desc: '',
    list: []
})
api[0].list[32].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/selectGoodsSearchVo',
    desc: 'Description:&lt;br/&gt;',
});
api[0].list[32].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/selectByGoodSn',
    desc: '',
});
api[0].list[32].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/selectGoodsDetails',
    desc: '',
});
api[0].list[32].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/myGoodsHistory',
    desc: '',
});
api[0].list[32].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/myGoodsStore',
    desc: '',
});
api[0].list[32].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/byGoodsIdImg',
    desc: '',
});
api[0].list[32].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/selectCommodityCode',
    desc: '',
});
api[0].list[32].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goods/selectGoodsPointDetails',
    desc: '',
});
api[0].list.push({
    alias: 'ItemRpcController',
    order: '34',
    link: '',
    desc: '',
    list: []
})
api[0].list[33].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findActProductVoByIds',
    desc: '',
});
api[0].list[33].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findProductVo',
    desc: '',
});
api[0].list[33].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findByGoodsn',
    desc: '',
});
api[0].list[33].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findProductVoByCreatedId',
    desc: '',
});
api[0].list[33].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findProductVoByProductSn',
    desc: '',
});
api[0].list[33].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/getBygoodSn',
    desc: '',
});
api[0].list[33].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findActProductVo',
    desc: '',
});
api[0].list[33].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/findById',
    desc: '',
});
api[0].list[33].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/selectProduct',
    desc: '',
});
api[0].list[33].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/getErpGoodsList',
    desc: '',
});
api[0].list[33].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/product/printGoods',
    desc: '',
});
api[0].list.push({
    alias: 'error',
    order: '35',
    link: 'error_code_list',
    desc: '错误码列表',
    list: []
})
api[0].list.push({
    alias: 'dict',
    order: '36',
    link: 'dict_list',
    desc: '数据字典',
    list: []
})
api[0].list[35].list.push({
    order: '1',
    deprecated: 'false',
    url: '',
    desc: 'http状态码字典',
});
document.onkeydown = keyDownSearch;
function keyDownSearch(e) {
    const theEvent = e;
    const code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    if (code == 13) {
        const search = document.getElementById('search');
        const searchValue = search.value;
        let searchGroup = [];
        for (let i = 0; i < api.length; i++) {

            let apiGroup = api[i];

            let searchArr = [];
            for (let i = 0; i < apiGroup.list.length; i++) {
                let apiData = apiGroup.list[i];
                const desc = apiData.desc;
                if (desc.indexOf(searchValue) > -1) {
                    searchArr.push({
                        order: apiData.order,
                        desc: apiData.desc,
                        link: apiData.link,
                        list: apiData.list
                    });
                } else {
                    let methodList = apiData.list || [];
                    let methodListTemp = [];
                    for (let j = 0; j < methodList.length; j++) {
                        const methodData = methodList[j];
                        const methodDesc = methodData.desc;
                        if (methodDesc.indexOf(searchValue) > -1) {
                            methodListTemp.push(methodData);
                            break;
                        }
                    }
                    if (methodListTemp.length > 0) {
                        const data = {
                            order: apiData.order,
                            desc: apiData.desc,
                            link: apiData.link,
                            list: methodListTemp
                        };
                        searchArr.push(data);
                    }
                }
            }
            if (apiGroup.name.indexOf(searchValue) > -1) {
                searchGroup.push({
                    name: apiGroup.name,
                    order: apiGroup.order,
                    list: searchArr
                });
                continue;
            }
            if (searchArr.length === 0) {
                continue;
            }
            searchGroup.push({
                name: apiGroup.name,
                order: apiGroup.order,
                list: searchArr
            });
        }
        let html;
        if (searchValue == '') {
            const liClass = "";
            const display = "display: none";
            html = buildAccordion(api,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        } else {
            const liClass = "open";
            const display = "display: block";
            html = buildAccordion(searchGroup,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        }
        const Accordion = function (el, multiple) {
            this.el = el || {};
            this.multiple = multiple || false;
            const links = this.el.find('.dd');
            links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
        };
        Accordion.prototype.dropdown = function (e) {
            const $el = e.data.el;
            $this = $(this), $next = $this.next();
            $next.slideToggle();
            $this.parent().toggleClass('open');
            if (!e.data.multiple) {
                $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
            }
        };
        new Accordion($('#accordion'), false);
    }
}

function buildAccordion(apiGroups, liClass, display) {
    let html = "";
    let doc;
    if (apiGroups.length > 0) {
         if (apiDocListSize == 1) {
            let apiData = apiGroups[0].list;
            for (let j = 0; j < apiData.length; j++) {
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiData[j].link + '">' + apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                html += '<ul class="sectlevel2" style="'+display+'">';
                doc = apiData[j].list;
                for (let m = 0; m < doc.length; m++) {
                    let spanString;
                    if (doc[m].deprecated == 'true') {
                        spanString='<span class="line-through">';
                    } else {
                        spanString='<span>';
                    }
                    html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                }
                html += '</ul>';
                html += '</li>';
            }
        } else {
            for (let i = 0; i < apiGroups.length; i++) {
                let apiGroup = apiGroups[i];
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiGroup.name + '">' + apiGroup.order + '.&nbsp;' + apiGroup.name + '</a>';
                html += '<ul class="sectlevel1">';

                let apiData = apiGroup.list;
                for (let j = 0; j < apiData.length; j++) {
                    html += '<li class="'+liClass+'">';
                    html += '<a class="dd" href="#_' + apiData[j].link + '">' +apiGroup.order+'.'+ apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                    html += '<ul class="sectlevel2" style="'+display+'">';
                    doc = apiData[j].list;
                    for (let m = 0; m < doc.length; m++) {
                       let spanString;
                       if (doc[m].deprecated == 'true') {
                           spanString='<span class="line-through">';
                       } else {
                           spanString='<span>';
                       }
                       html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                   }
                    html += '</ul>';
                    html += '</li>';
                }

                html += '</ul>';
                html += '</li>';
            }
        }
    }
    return html;
}